package com.tianzeculture.stagebao.activity.artist.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.tianzeculture.stagebao.R;
import com.tianzeculture.stagebao.bean.OfferBean;

import java.util.List;

/**
 * Created by Administrator on 2018/8/12.
 */

public class ArtistPriceAdapter extends BaseQuickAdapter<OfferBean, BaseViewHolder> {
    public ArtistPriceAdapter(@LayoutRes int layoutResId, @Nullable List<OfferBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, OfferBean item) {
        helper.setText(R.id.tv_work_type, item.getWorkType())
                .setText(R.id.tv_breakdown, item.getDetailWork())
                .setText(R.id.tv_money, item.getOfferMoney() + "元/" + item.getOffer());
    }
}
